package com.xw.echo.core.service;

import java.util.concurrent.CompletableFuture;

public class UserServiceImpl implements UserService{
    @Override
    public String login(String name) {
        return "你好"+name;
    }

    @Override
    public CompletableFuture<String> loginAsync(String userName) {
        CompletableFuture<String> completableFuture = new CompletableFuture<>();
        completableFuture.complete("你好"+userName);
        return completableFuture;
    }
}
